package com.cloud.elasticsearch.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.lwj.logger.api.LogMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * @Author: :lwj
 * @Time: 2018-10-21 18:40
 * @Feature:
 */

@Api(tags ="测试")
@Controller
public class HelloController {
    @Autowired
    private ElasticsearchTemplate elasticsearchTemplate;
    /**
     * @return
     */
    @ApiOperation(value = "hello1")
    @GetMapping("/hello1")
    @LogMethod
    public ResponseEntity<String> hello1(Long id){

        return ResponseEntity.ok("hello1");
    }
}
